import java.awt.*;
import javax.swing.*;

public class CAT200_Project extends JFrame {
    private JPanel panel;
    
    public CAT200_Project() {
        initComponents();
    }
    
    //Function to initialise the frame for the program
    private void initComponents () {
        setTitle("Electronic Organiser");
        setSize(660, 660);
        setResizable(false);
        
        panel = new JPanel(new CardLayout());
        
        //Initialise all the panels in the program using the class constructors
        panel.add(new Calendar(panel),"Calendar");
        panel.add(new EntryMenu(panel),"EntryMenu");
        panel.add(new AlarmClockSetting(panel),"AlarmClockSetting");
        panel.add(new DeleteEntry(panel),"DeleteEntry");
        panel.add(new ViewEntry(panel),"ViewEntry");
        panel.add(new Edit(panel),"Edit");
        panel.add(new Add(panel),"Add");
        
        this.getContentPane().add(panel);
    }
    
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
                public void run() {
                        new CAT200_Project().setVisible(true);
                }
        });
    }
}